#!/bin/bash

# ROOT用户的SSH相关配置
echo ">>>>Config SSH Settings for root"

CURPATH=$(dirname $0)

if ! [ -d /root/.ssh ]; then
	mkdir /root/.ssh
fi

chmod 0755 /root/.ssh
chmod 0750 /root

cp -f $CURPATH/authorized_keys /root/.ssh/
cp -f $CURPATH/id_rsa /root/.ssh/

chmod 400 /root/.ssh/authorized_keys
chmod 600 /root/.ssh/id_rsa

